import 'package:amap_plugin/src/models/my_location_style.dart';

const int MAP_TYPE_NORMAL = 1;
const int MAP_TYPE_SATELLITE = 2;

class MapViewOptions {
  ///高德地图”Logo的位置
  final int logoPosition;

  final bool zOrderOnTop;

  ///地图模式
  final int mapType;

  /// 地图初始化时的地图状态， 默认地图中心点为北京天安门，缩放级别为 10.0f
  //final CameraPosition camera = null;

  ///比例尺功能是否可用
  final bool scaleControlsEnabled;

  ///地图是否允许缩放
  final bool zoomControlsEnabled;

  /// 指南针是否可用
  final bool compassEnabled;

  ///拖动手势是否可用
  final bool scrollGesturesEnabled;

  ///缩放手势是否可用
  final bool zoomGesturesEnabled;

  ///地图倾斜手势（显示3D效果）是否可用
  final bool tiltGesturesEnabled;

  ///地图旋转手势是否可用
  final bool rotateGesturesEnabled;

  ///是否启用我的定位按钮
  final bool myLocationButtonEnabled ;

  ///显示我的位置
  final bool showMyLocation;

 ///设置是否打开定位图层（myLocationOverlay）
  final bool isMyLocationEnabled ;

  final MyLocationStyle myLocationStyle;

  MapViewOptions(
      {this.logoPosition,
      this.zOrderOnTop,
      this.mapType: MAP_TYPE_NORMAL,
      this.scaleControlsEnabled = true,
      this.zoomControlsEnabled = true,
      this.compassEnabled = true,
      this.scrollGesturesEnabled = true,
      this.zoomGesturesEnabled = true,
      this.tiltGesturesEnabled = true,
      this.rotateGesturesEnabled = true,
      this.myLocationButtonEnabled = true,
      this.showMyLocation = true,
      this.isMyLocationEnabled= true,
      this.myLocationStyle = const MyLocationStyle(1, "#8052A3FF","#3052A3FF") });
}
